<div class="detail">
  <!-- 基本信息 -->
  <div class="clearfix credit-detail font-s">
    <h4 class="font-s font-green">基本信息</h4>
    <div class="fl font-s">
      <p>
        <span>真实姓名：</span>
        <span ng-bind="info.user_name || '未填写'"></span>
      </p>
      <p>
        <span>手机号码：</span>
        <span ng-bind="info.user_phone || '未填写'"></span>
      </p>
      <p>
        <span>身份证号：</span>
        <span ng-bind="info.user_id_number || '未填写'"></span>
      </p>
      <p>
        <span>家庭年收入：</span>
        <span ng-bind="info.user_income | user_income_type"></span>
      </p>
      <p>
        <span>家庭住址：</span>
        <span ng-bind="info.user_addr || '未填写'"></span>
      </p>
    </div>
    <div class="fr id-card-content">
      <span>身份证：</span>
      <div class="img-view">
        <img ng-src="{{info.filePath + info.user_idimg_positive}}" alt="">
      </div>
      <div class="img-view">
        <img ng-src="{{info.filePath + info.user_idimg_back}}" alt="">
      </div>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 工作单位信息 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">工作单位信息</h4>
    <div>
      <p>
        <span>工作单位名称：</span>
        <span ng-bind="info.company_name || '未填写'"></span>
      </p>
      <p>
        <span>工作单位电话：</span>
        <span ng-bind="info.company_telphone || '未填写'"></span>
      </p>
      <p>
        <span>工作单位地址：</span>
        <span ng-bind="info.company_addr || '未填写'"></span>
      </p>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 担保人信息 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">担保人信息</h4>
    <div class="fl">
      <p>
        <span>担保人姓名：</span>
        <span ng-bind="info.user_guarantee_name || '未填写'"></span>
      </p>
      <p>
        <span>担保人联系方式：</span>
        <span ng-bind="info.user_guaranteeid_phone || '未填写'"></span>
      </p>
      <p>
        <span>担保人身份证号码：</span>
        <span ng-bind="info.user_guaranteeid_number || '未填写'"></span>
      </p>
    </div>
    <div class="fr id-card-content">
      <span>身份证：</span>
      <div class="img-view">
        <img ng-show="info.user_guaranteeidimg_positive" ng-src="{{info.filePath + info.user_guaranteeidimg_positive}}" alt="">
      </div>
      <div class="img-view">
        <img ng-show="info.user_guaranteeidimg_positive" ng-src="{{info.filePath + info.user_guaranteeidimg_back}}" alt="">
      </div>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 婚姻信息 -->
  <div class="clearfix bgc-white credit-detail font-s" ng-show="info.user_marital_status == 1">
    <h4 class="font-s font-green">婚姻信息</h4>
    <div class="fl">
      <p>
        <span>配偶姓名：</span>
        <span ng-bind="info.spouse_name || '未填写'"></span>
      </p>
      <p>
        <span>配偶联系方式：</span>
        <span ng-bind="info.spouse_phone || '未填写'"></span>
      </p>
      <p>
        <span>配偶身份证号码：</span>
        <span ng-bind="info.spouse_id_number || '未填写'"></span>
      </p>
    </div>
    <div class="fr id-card-content">
      <span>结婚证件照：</span>
      <div class="img-view">
        <img ng-show="info.user_marriage_certificate" ng-src="{{info.filePath + info.user_marriage_certificate}}" alt="">
      </div>
      <span>配偶身份证：</span>
      <div class="img-view">
        <img ng-show="info.spouse_idimg_positive" ng-src="{{info.filePath + info.spouse_idimg_positive}}" alt="">
      </div>
      <div class="img-view">
        <img ng-show="info.spouse_idimg_back" ng-src="{{info.filePath + info.spouse_idimg_back}}" alt="">
    </div>
    </div>
  </div>
  <!--分割线-->
  <div class="line" ng-if="info.user_marital_status == 1"></div>
  <!-- 查看订单 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">查看订单</h4>
    <div>
      <button class="bgc-white font-yellow look-for-order" ng-click="toOrderDetail()">立即查看</button>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 审核 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">审核</h4>
    <div class="credit-detail-verify" ng-if="isAudit == 1">
      <!--选择审核意见-->
      <p class="input">
        <span>请选择审核意见：</span>
        <select ng-model="$parent.loanStatus">
          <option value="2">审核通过</option>
          <option value="3">审核不通过</option>
        </select>
      </p>
      <!--当选择了审核通过的时候，展示此项-->
      <p class="input" ng-show="$parent.loanStatus == 2">
        <span>请填写授信建议额度：</span>
        <input type="text" ng-model="$parent.loanAmount"> 元
      </p>
      <!--当选择了审核不通过的时候，展示此项-->
      <p class="input" ng-show="$parent.loanStatus == 3">
        <span>请填写审核不通过原因：</span>
        <input type="text" ng-model="$parent.loanDesc">
      </p>
      <button class="btn-yellow font-white btn-detail-submit" ng-click="submitAwardResult()">提交</button>
    </div>
    <!--详情-->
    <div class="credit-detail-verify" ng-if="isAudit != 1">
      <p>审核意见：{{$status.name(info.clerk_status, info.employee_status)}}</p>
      <!--审核通过展示额度-->
      <p ng-if="$status.auditSuccess(info)">建议授信额度：{{info.employee_limit || info.clerk_limit}}元</p>
      <!--审核失败，展示原因-->
      <p ng-if="$status.auditFail(info)">原因：{{info.employee_desc || info.clerk_desc || '未填写'}}</p>
    </div>
  </div>
  <!--分割线-->
  <div class="line"></div>
  <!-- 操作日志 -->
  <div class="clearfix bgc-white credit-detail font-s">
    <h4 class="font-s font-green">操作日志</h4>
    <table class="list-table text-c table table-striped">
      <thead class="bg-green font-white">
      <tr>
        <th>操作时间</th>
        <th>操作人</th>
        <th>授信状态</th>
        <th>额度</th>
        <th>审核说明</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="item in records">
        <td ng-bind="item.time"></td>
        <td>{{item.name}}&nbsp;({{$status.getRoleName(item.role)}})</td>
        <td ng-bind="$status.getStatus(item.role, item.STATUS)"></td>
        <td ng-bind="item.R_LIMIT || '未填写'"></td>
        <td ng-bind="item.R_DESC || '未填写'"></td>
      </tr>
      <tr ng-show="!records || records.length == 0"><td colspan="10">暂无操作日志记录</td></tr>
      </tbody>
    </table>
  </div>
</div>
